Skip to main content

All Questions

Tagged with
6votes
0answers
8kviews

Page and center UICollectionView like App Store

I need a collection view to page through cells and center it like the App Store, where a portion of the previous and next cells look like this: The native ...
TruMan1's user avatar
2votes
0answers
194views

Comments on singleton Swift status bar alert

I was trying out some projects like a status bar alert. It made most sense for this status bar to be a singleton: there is only one alert visible at a time. ...
Daniel's user avatar
2votes
1answer
17kviews

Setting constraints for dynamic views in iOS

I have an app which uses Stack Views to update its UI depending on the number of pigs. For example below, 1 pig and 4 pigs. I set up Stack Views in Storyboard and set isHidden to true based on how ...
Mochi's user avatar
3votes
0answers
173views

Adding swipe support to multiple classes

I have implemented swipe functionality using UIPanGestureRecognizer in a project. What I have done is added PanGesture to ...
LC 웃's user avatar
3votes
1answer
3kviews

Set a font for a UITextView if the font is nil or not equal to desired font

Main question I am setting a font for a UITextView that is a subview in a custom view. I only set it if the user didn't specify the font size in the Interface Builder. I have the following working ...
Suragch's user avatar
4votes
2answers
7kviews

Removing a subview with a subview from a UIView without memory leaks

I made a custom UITextView for vertical Mongolian writing. It is made by subclassing UIView, which has a subview called ...
Suragch's user avatar
3votes
1answer
704views

HMSegmentedControl react to tapping on currently selected segment

I'm using HMSegmentedControl, an open-source UISegmentedControl subclass. I'm trying to react to the user tapping on the currently selected segment. HMSegmentedControl only supports reacting to a ...
hgwhittle's user avatar
2votes
1answer
12kviews

Correct Implementation of Custom UIView into ViewController Programatically

I am familiar with using storyboards to construct UI elements in Xcode, but I am only beginning to learn how to make UI programmatically (without a storyboard). I wanted to know if this is the ...
Jacob Young's user avatar
6votes
2answers
477views

User Interface for Strategy Game

I've been working a strategy game for iOS for a little while, and each time I add functionality to the game model I'm finding myself building a lot of UI code to sync up with it. I believe that my ...
bazola's user avatar
  • 8,589
5votes
3answers
13kviews

Custom iOS chat interface design & functionality

Preamble So, as most of you have likely also noticed, chat components, at least at a basic level, are becoming very common with lots of apps. I found myself tweaking and redesigning the interface ...
Logan's user avatar

close